Quản lý nhân sự công ty bằng c# _ full source code
60.453 lượt xem;
- frmGioiThieu.cs
- QuanLyNhanSu /
- project /
1
2 using System;
3 using System.Collections.Generic;
4 using System.ComponentModel;
5 using System.Data;
6 using System.Drawing;
7 using System.Text;
8 using System.Windows.Forms;
9
10 namespace QuanLyNhanSu
11 {
12 public partial class Form1_ : TransDialog
13 {
14
15 public Form1_()
16 {
17 InitializeComponent();
18
19
20
21 //Needed to make the custom shaped Form
22 this.FormBorderStyle = FormBorderStyle.None;
23 this.Width = this.BackgroundImage.Width;
24 this.Height = this.BackgroundImage.Height;
25
26 //Slow version
27 //this.Region = BitmapToRegion.getRegion((Bitmap)this.BackgroundImage, Color.FromArgb(0, 255, 0), 100);
28
29 //Fast version
30 this.Region = BitmapToRegion.getRegionFast((Bitmap)this.BackgroundImage, Color.FromArgb(0, 255, 0), 100);
31 }
32
33 Point lastPoint;
34 private void Form1_MouseDown(object sender, MouseEventArgs e)
35 {
36 lastPoint = new Point(e.X, e.Y);
37 }
38
39 private void Form1_MouseMove(object sender, MouseEventArgs e)
40 {
41 if (e.Button == MouseButtons.Left)
42 {
43 this.Left += e.X - lastPoint.X;
44 this.Top += e.Y - lastPoint.Y;
45 }
46 }
47
48 private void exotToolStripMenuItem_Click(object sender, EventArgs e)
49 {
50 this.Close();
51 }
52
53 private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
54 {
55
56 }
57
58 private void Form1_Load(object sender, EventArgs e)
59 {
60 timer1.Interval = 5000;
61 timer1.Start();
62 }
63
64 private void timer1_Tick(object sender, EventArgs e)
65 {
66 timer1.Stop();
67 this.Close();
68
69 }
70 }
71 }
2 using System;
3 using System.Collections.Generic;
4 using System.ComponentModel;
5 using System.Data;
6 using System.Drawing;
7 using System.Text;
8 using System.Windows.Forms;
9
10 namespace QuanLyNhanSu
11 {
12 public partial class Form1_ : TransDialog
13 {
14
15 public Form1_()
16 {
17 InitializeComponent();
18
19
20
21 //Needed to make the custom shaped Form
22 this.FormBorderStyle = FormBorderStyle.None;
23 this.Width = this.BackgroundImage.Width;
24 this.Height = this.BackgroundImage.Height;
25
26 //Slow version
27 //this.Region = BitmapToRegion.getRegion((Bitmap)this.BackgroundImage, Color.FromArgb(0, 255, 0), 100);
28
29 //Fast version
30 this.Region = BitmapToRegion.getRegionFast((Bitmap)this.BackgroundImage, Color.FromArgb(0, 255, 0), 100);
31 }
32
33 Point lastPoint;
34 private void Form1_MouseDown(object sender, MouseEventArgs e)
35 {
36 lastPoint = new Point(e.X, e.Y);
37 }
38
39 private void Form1_MouseMove(object sender, MouseEventArgs e)
40 {
41 if (e.Button == MouseButtons.Left)
42 {
43 this.Left += e.X - lastPoint.X;
44 this.Top += e.Y - lastPoint.Y;
45 }
46 }
47
48 private void exotToolStripMenuItem_Click(object sender, EventArgs e)
49 {
50 this.Close();
51 }
52
53 private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
54 {
55
56 }
57
58 private void Form1_Load(object sender, EventArgs e)
59 {
60 timer1.Interval = 5000;
61 timer1.Start();
62 }
63
64 private void timer1_Tick(object sender, EventArgs e)
65 {
66 timer1.Stop();
67 this.Close();
68
69 }
70 }
71 }